<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>WebChartViewer.streamChart2</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="WebChartViewer.htm">WebChartViewer</a>.<wbr>streamChart2</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public boolean streamChart(HttpServletResponse response[, String filename])
</div>
<p class="heading2">Description</p>
<div class="content">
Sends the chart out as a MIME stream.<br><br>
The optional <b>filename</b> argument is the suggested filename in case it is needed on the browser side. For example, if the user saves the image to the hard disk, the browser will usually derive a filename based from the URL. For dynamically generated images, the URL is a script, and using it as the image filename may not be meaningful. In this case, the <b>filename</b> can be used to specify the filename to use.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>response</td><td>(Mandatory)</td><td>An HttpServletResponse object used to encode the output.</td></tr><tr><td>filename</td><td>""</td><td>The suggested filename to use when user saves the chart image as a file on the browser side.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
This method always return true. Please refer to <a href="WebChartViewer.streamChart.htm">WebChartViewer.streamChart</a> for the purpose of this return value.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
